package com.thinkgem.jeesite.modules.sys.entity;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

public class Student extends DataEntity<Student>{
 
	/**
	 * 
	 */
	private static final long serialVersionUID = 8700599947762040858L;

	@ExcelField(title="学号", align=2, sort=1)
    private String sNo;
	
	@ExcelField(title="姓名", align=2, sort=2)
    @NotNull(message="姓名不能为空")
    private String name;
	
	@ExcelField(title="年龄", align=2, sort=3)
    @NotNull(message="年龄不能为空")
    private String age;
	
	@ExcelField(title="地址", align=2, sort=4)
    @NotNull(message="地址不能为空")
    private String address;
    
	@ExcelField(title="身高", align=2, sort=5)
    private String height;

	@ExcelField(title="体重", align=2, sort=6)
    private String weight;
    
	@ExcelField(title="职务", align=2, sort=7)
    private String position;
	
	@ExcelField(title="手机号", align=2, sort=8)
//	@NotNull
//	@Pattern(regexp="^1[3|4|5|7|8]\\d{9}$",message="请输入有效的手机号")
	private String phone;
	
    public String getsNo() {
        return sNo;
    }

    public void setsNo(String sNo) {
        this.sNo = sNo == null ? null : sNo.trim();
    }
    
    public String getSNo() {
        return sNo;
    }

    public void setSNo(String SNo) {
        this.sNo = SNo == null ? null : SNo.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age == null ? null : age.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height == null ? null : height.trim();
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight == null ? null : weight.trim();
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public String getPhone() {
 		return phone;
 	}

 	public void setPhone(String phone) {
 		this.phone = phone;
 	}

}